/*
 * IndexEditor.h
 *
 *  Created on: 30-Oct-2013
 *      Author: sriram
 */

#ifndef INDEXEDITOR_H_
#define INDEXEDITOR_H_
#include "../dependency/GlobalStructures.h"
#include <map>
#include <string>
using namespace std;
class IndexEditor {
private:
	map<string, int> hashIndexPage;
        string useIndexName;
public:
	IndexEditor();
	virtual ~IndexEditor();
	void showEditor();
	STATUS_CODE execute(string query);
	int createIndex(string indexName, int fanout);
	void display(string indexName);
        void insertIndex(string indexName, char* key);
};

#endif /* INDEXEDITOR_H_ */
